<?php
	 define('IN_ECS', true);

	 require('../includes/init.php');
	 define('ADMIN',true);
	//print_r($_SESSION);
	 $_SEP = '..';
	 $ajax = !empty($_POST['ajax']) ? $_POST['ajax'] : '';
	 $act  = !empty($_REQUEST['act'])  ?  $_REQUEST['act'] : 'login';
	
	 $ad_dir = './templates';
	 $sm->template_dir		= $ad_dir;
	 $sm->template_dir		= $ad_dir;

	 $sm->assign('ad_dir',	$ad_dir);
	
	 $smarty->assign("s_path", "../includes/static");
	 $smarty->assign("t_path", ROOT_PATH."templates/default");
	 $host = 'http://' . $_SERVER['HTTP_HOST'] . preg_replace("/\/\w+.php/", "", $_SERVER['PHP_SELF']);
	 $host = preg_replace("/".ADMIN_PATH."/","",$host);
	 $sm->assign('host', $host);
	 $sm->assign('sep', $_SEP);
	 
	 
	
?>